package com.nsl.my_youlai.mystar.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import com.nsl.my_youlai.mystar.enums.auxiliary.UploadStatusEnumDeserializer;
import lombok.Getter;
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@JsonDeserialize(using = UploadStatusEnumDeserializer.class)
public   enum NslEnumUploadStatus implements NslEnumBaseI<Integer> {
        WAIT_TO_SAVE(1, "等待上传保存"),

        SAVE_SUCCESS(2,"上传成功"),
        SAVE_FAIL (3, "上传失败"),

        UPLOAD_SUCCESS_OTHER_PROBLEM(4,"上传成功,存在其他问题"),
        UPLOAD_SUCCESS_EVERY_THINK_OK(5,"upload success,everything ok"),
            
        ;


        @Getter
        private Integer value;

        @Getter
        private String label;

        NslEnumUploadStatus(Integer value, String label) {
            this.value = value;
            this.label = label;
        }

        @Override
        public String toString(){
            return getValue().toString();
        }


        public String getEnumCnName() {
            return "上传状态";
        }

    @Override
    public EnumTypeEnum getEnumType() {
        return EnumTypeEnum.Upload_Status_TYPE_ENUM;
    }
}